/**
 * 
 */
function loadXMLDoc(dname)
{
//	
//var e = document.getElementById("selection");
//var strUser = e.options[e.selectedIndex].text;


if (window.XMLHttpRequest)
  {
  xhttp=new XMLHttpRequest();
  }
else
  {
  xhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xhttp.open("GET",dname,false);
xhttp.send("");
return xhttp.responseXML;
}

function displayResult(xslName)
{
xml=loadXMLDoc("UserSchedule");
xsl=loadXMLDoc("GetXSL?xslName=" + xslName);
// code for IE
if (window.ActiveXObject)
  {
  ex=xml.transformNode(xsl);
  document.getElementById("sched").innerHTML=ex;
  }
// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation && document.implementation.createDocument)
  {
  xsltProcessor=new XSLTProcessor();
  xsltProcessor.importStylesheet(xsl);
  resultDocument = xsltProcessor.transformToFragment(xml,document);
  divSched = document.getElementById("sched");

  if ( divSched.hasChildNodes() )
	  {
	      while ( divSched.childNodes.length >= 1 )
	      {
	    	  divSched.removeChild( divSched.firstChild );       
	      } 
	  }  } 

	divSched.appendChild(resultDocument);
 
}